#pragma once
namespace XCode 
{
	 constexpr int Ok = 0;//成功
	 constexpr int Failure = 1;//失败
	 constexpr int NetTimeout = 2;//网络超时
	 constexpr int NetReadFailure = 3;//接收网络消息失败
	 constexpr int NetSendFailure = 4;//发送网络消息失败
	 constexpr int NetConnectFailure = 5;//连接服务器失败
	 constexpr int NetActiveShutdown = 6;//主动关闭连接
	 constexpr int NetBigDataShutdown = 7;//数据包过大
	 constexpr int ParseMessageError = 8;//解析protobuf失败
	 constexpr int UnKnowPacket = 9;//恶意数据包
	 constexpr int ParseRequestDataError = 10;//解析请求数据包失败
	 constexpr int ParseResponseDataError = 11;//解析响应数据包失败
	 constexpr int CallServiceNotFound = 12;//调用服务未发现
	 constexpr int NotFoundRpcConfig = 13;//没有rpc配置
	 constexpr int RpcTypeError = 14;//rpc类型错误
	 constexpr int InitMessageFail = 15;//初始化消息失败
	 constexpr int CallFunctionNotExist = 16;//调用方法不存在
	 constexpr int CallArgsError = 17;//调用参数错误
	 constexpr int NotFindUser = 18;//没有找到玩家对象
	 constexpr int CallTypeError = 19;//调用参数类型错误
	 constexpr int CallTimeout = 20;//超时自动调用
	 constexpr int ThrowError = 21;//抛出一个错误
	 constexpr int CallLuaFunctionFail = 22;//调用lua方法错误
	 constexpr int JsonCastProtoFailure = 23;//json转protobuf失败
	 constexpr int ProtoCastJsonFailure = 24;//protobuf转json失败
	 constexpr int CreateProtoFailure = 25;//创建protobuf失败
	 constexpr int SerializationFailure = 26;//序列化失败
	 constexpr int SendMessageFail = 27;//发送消息错误
	 constexpr int NetWorkError = 28;//网络错误
	 constexpr int ParseJsonFailure = 29;//解析json失败
	 constexpr int MysqlResultIsNull = 30;//Mysql结果返回空
	 constexpr int MysqlTableNameError = 31;//Mysql表名不符合规则
	 constexpr int MysqlInitTaskFail = 32;//Mysql初始化失败
	 constexpr int MysqlSocketIsNull = 33;//Mysql连接是空
	 constexpr int MysqlInvokeFailure = 34;//Mysql执行sql语句失败
	 constexpr int SaveToMysqlFailure = 35;//保存数据到Mysql失败
	 constexpr int SaveToRedisFailure = 36;//保存数据到Redis失败
	 constexpr int AccountAlreadyExists = 37;//账号已经存在
	 constexpr int AccountNotExists = 38;//账号不存在
	 constexpr int AddressAllotFailure = 39;//服务分配失败
	 constexpr int LuaCoroutineWait = 40;//等待lua协程完成
	 constexpr int MakeTcpRequestFailure = 41;//创建tcp请求错误
	 constexpr int MakeHttpRequestFailure = 42;//创建http请求错误
	 constexpr int ParseHttpUrlFailure = 43;//解析http的url失败
	 constexpr int UnknownMessageNetType = 44;//未知的传输网络类型
	 constexpr int OnlyUseTcpProtocol = 45;//只能使用tcp协议
	 constexpr int NotFoundServerRpcAddress = 46;//找不到服务器rpc地址
	 constexpr int NotFoundPlayerRpcAddress = 47;//找不到玩家所在服务器地址
	 constexpr int NotFoundActor = 48;//找不到Actor
	 constexpr int NotFoundActorAddress = 49;//找不到actor地址
	 constexpr int AccountPasswordError = 50;//账号不存在或者密码错误
	 constexpr int PlayerOnLine = 51;//玩家已经在线
	 constexpr int PlayerNotOnLine = 52;//玩家不在线
	 constexpr int CallFrequently = 53;//调用太频繁
	 constexpr int NotFoundSender = 54;//找不到Sender对象
	 constexpr int ConnectionComeOnline = 55;//连接数达到上线
	 constexpr int SqliteOpenFail = 56;//打开sqlite数据库失败
	 constexpr int SqliteIndexError = 57;//Sqlite数据库实例不存在
	 constexpr int SqliteExecSqlFail = 58;//执行sql语句失败
	 constexpr int SqliteNameFail = 59;//数据库名字不合法
	 constexpr int CreateSqlFail = 60;//创建sql语句失败
	 constexpr int InsertMongoDocumentFail = 61;//插入数据到mongo失败
	 constexpr int SaveMongoDocumentFail = 62;//保存数据到mongo失败
	 constexpr int UpdateMongoDocumentFail = 63;//更新数据到mongo失败
	 constexpr int FindMongoDocumentFail = 64;//从mongo中查数据失败
	 constexpr int OpenDBFail = 65;//打开数据库失败
	 constexpr int WriteToDBFail = 66;//写入数据到数据库失败
	 constexpr int ReadFromDBFail = 67;//从数据库中读取数据失败
	 constexpr int DeleteData = 68;//释放内存
	 constexpr int CloseSocket = 69;//关闭网络连接
	 constexpr int ConnectTimeout = 70;//连接超时
	 constexpr int ReadDataTimeout = 71;//读取数据超时
	 constexpr int SendDataTimeout = 72;//发送数据超时
	 constexpr int CodeNotExist = 73;//验证码不存在
	 constexpr int TokenInvalid = 74;//Token无效
	 constexpr int TokenExpTime = 75;//Token已经过期
	 constexpr int NotFoundData = 76;//找不到数据
	 constexpr int CreateOrderFrequently = 77;//创建订单太过于频繁
	 constexpr int OrderAlreadyRefund = 78;//订单已经退款
	 constexpr int RequestWxApiError = 79;//请求微信api错误
	 constexpr int PermissionDenied = 80;//权限不足
};